//
//  PJUltraThinLine.m
//  CLDuo
//
//  Created by iCatbot on 12/26/13.
//  Copyright (c) 2013 pengjiang. All rights reserved.
//

#import "PJUltraThinLine.h"

@implementation PJUltraThinLine

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.lineColor = [UIColor lightGrayColor];//[UIColor colorWithRed:0.91 green:0.91 blue:0.91 alpha:1.0];
    }
    return self;
}

- (void)drawRect:(CGRect)rect
{
    CGContextRef ctx = UIGraphicsGetCurrentContext();
    CGContextSetFillColorWithColor(ctx, self.lineColor.CGColor);
    CGContextSetShouldAntialias(ctx, NO);
    CGContextFillRect(ctx, CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height));
}

@end
